/**
 * @Author: likang xie
 * @Date: 2019-11-06 17:11:52
 * @Usage 用户模块接口列表
 */

import request from "@/utils/request";

let extra = {
  showLoading: false
};

// 获取钱包余额
export let getBalance = params =>
  request.get("/doc/pay/balance", params);

//获取订单列表
export let getcashoutInfo = params =>
  request.get("/doc/pay/get_cashout_info", params);
// ---- 任务 ----

// 余额支付赏金托管
export let bountyTaskOfWallet = params =>
  request.post("/doc/pay/bountyByBalance", params);

// 第三方支付赏金托管
export let bountyTaskOfThird = params =>
  request.post("/doc/user/postCash", params);

// ---- 服务/店铺 ----

// 余额支付雇佣赏金托管
export let bountyServiceOfWallet = params =>
  request.post("/doc/user/cashPayEmploy", params);

// 第三方支付雇佣赏金托管
export let bountyServiceOfThird = params =>
  request.post("/doc/user/ThirdCashEmployPay", params);

// ---- 作品 ----

// 余额购买作品
export let cashPayGoods = params =>
  request.post("/doc/user/cashPayGoods", params);

// 第三方购买作品
export let thirdPayGoods = params =>
  request.get("/doc/user/ThirdCashGoodsPay", params);

// ---- 充值/提现/保证金 ----

// 充值
export let postCash = params => request.post("/doc/user/postCash", params);

// 提现
export let cashOut = params => request.post("/doc/pay/cashOut", params);

// 可提现金额
export let moneyConfig = params =>
  request.get("/doc/user/moneyConfig", params);

// 保证金配置列表
export let listBond = params => request.get("/doc/bond_list", params);

// 缴纳保证金
export let payBond = params => request.post("/doc/my/pay_bond", params);

// ---- 套餐 ----

// 余额购买套餐
export let balanceBuyVip = params =>
  request.post("/doc/my/balance_buy_vip", params);

// 第三方购买套餐
export let thirdBuyVip = params =>
  request.post("/doc/my/third_buy_vip", params);
